๐ Deeplinks
Configuring Deep Links in AppStructโ
- Open General Settings:
- From your projectโs main dashboard, go to Project Settings or General Settings.
- Find the Deeplinks Section:
- Look for the Deeplinks heading. You should see a Schema field.
- Enter Your Custom URI Scheme (Schema):
- In the Schema field, type your chosen URI scheme (e.g., myapp, fitnessapp, gymapp).
- Note: This scheme should be unique to your app to avoid conflicts with other apps.
How Deep Links Workโ
- URI Structure:
- A typical deep link looks like myapp://screenName or myapp://resourceType/123.
- The prefix (myapp://) matches your configured Schema.
- Launching Your App:
- When a user clicks or taps a link matching your schema, the device checks if your app can handle that URI.
- If yes, the app opens and routes the user to the specified content or screen.
- Routing Logic:
- Your appโs navigation system interprets the part of the URI after the scheme (e.g., /profile/123) to load the correct screen or data.
- You can define how the app handles different paths or parameters (e.g., loading a userโs profile based on an ID in the link).
Example Scenarioโ
- Schema Set to fitnessapp
- In the Deeplinks settings, you enter fitnessapp in the Schema field.
- User Receives a Link: fitnessapp://workout/leg-day
- Tapping this link on a mobile device attempts to open your app with the path workout/leg-day.
- App Routing:
- Your app checks the path (workout/leg-day) and navigates to the Workout screen, loading the โLeg Dayโ workout routine.
Troubleshootingโ
- Link Not Opening the App:
- Confirm your Schema matches the URI prefix exactly.
- Check that your device settings allow opening custom URL schemes.
- App Opens but Shows Wrong Screen:
- Make sure your internal routing logic is set up to parse the path correctly (e.g., โworkoutโ vs. โworkoutsโ).
- No Reaction at All:
- Ensure you saved your Schema in project settings.
- Try restarting your app or device after updating the scheme.
Best Practicesโ
- Choose a Clear Schema: Use a descriptive but concise name (e.g., fitnessapp://) so itโs easy to remember and type.
- Handle Fallbacks: If the user does not have your app installed, consider directing them to your website or app store listing.
- Test Across Devices: Verify deep link behavior on both iOS and Android devices, as each handles URIs slightly differently.
- Secure Your Links: If your app handles sensitive data, ensure you properly validate and sanitize deep link parameters before displaying content.
Need Assistance?โ
If you encounter any challenges or require further guidance while building your app, please refer to the Documentation or, contact our support team at [email protected].